<!--     Copyright (c) Microsoft Corporation.  All rights reserved.     -->

<!------------------------------------------------------------------------>
<!--                           NS71obj.htm                             -->
<!--                                                                    -->
<!-- Purpose:  This web page is part of the Windows Media Player sample -->
<!--   that detects the version of WMP installed.  This demonstrates    -->
<!--   the use of the v7.+ player within the Internet Explorer browser. -->
<!--                                                                    -->
<!--   This page also works with the Netscape 7.1 browser.              -->
<!------------------------------------------------------------------------>
<html>
<head>
<title>Windows Media Player Detection Sample</title>
<link rel="stylesheet" href="basic.css" type="text/css">
<script language="JavaScript" src="PlayerDetection.js"></script>
<body language="JavaScript" topmargin=0 leftmargin=0>
<img border=0 src=wmt-title.jpg width="250" height="60">
<table>
  <tr><th>Windows Media Player Detection Sample</th><tr>
  <tr><td>
    <OBJECT ID="MediaPlayer" 
         CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6
         standby="Loading Microsoft Windows Media Player components..."
         TYPE="application/x-oleobject" width="200" height="200" VIEWASTEXT>
        <PARAM NAME="url" VALUE="http://go.microsoft.com/fwlink/?LinkId=10710">
        <PARAM NAME="AutoStart" VALUE="true">
        <PARAM NAME="uiMode" VALUE="full">
    </OBJECT>
  </td></tr>
  <tr><td>
       <form id=form name=form>         
         <TEXTAREA class="StatusBar" NAME="StatusText" COLS=50 ROWS=3 WRAP="SOFT"></TEXTAREA> 
       </form>
  </td></tr>
  <script language="javascript">WMPVer=MediaPlayer.versionInfo;AddDownloadLink(GetPlayerMajorVer());</script>
</table>
</body>
<!-- Handler for PlayStateChange event -->
<SCRIPT language="Javascript" for="MediaPlayer" event="PlayStateChange(NewState)">
    document.form.StatusText.value=GetPlayerState(NewState);
</SCRIPT>


</html>